<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" href="./css/register.css">
</head>

<body>
    <div class="register-container">
        <h1>创建账户</h1>
        <form id="registerForm">
            <div class="form-group">
                <label for="email">电子邮箱</label>
                <input type="email" id="email" name="email" placeholder="请输入有效邮箱地址">
                <span class="error-message" id="emailError"></span>
            </div>
            
            <div class="form-group">
                <label for="email">昵称</label>
                <input type="text" id="name" name="name" placeholder="请输入昵称">
                <span class="error-message" id="nameError"></span>
            </div>

            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" placeholder="至少8位字符">
                <span class="error-message" id="passwordError"></span>
            </div>

            <div class="form-group">
                <label for="confirmPassword">确认密码</label>
                <input type="password" id="confirmPassword" name="confirmPassword" placeholder="再次输入密码">
                <span class="error-message" id="confirmError"></span>
            </div>

            <button type="submit" class="submit-btn">注册</button>
        </form>

        <div class="login-link">
            已有账号？<a href="index.html">立即登录</a>
        </div>
    </div>

    <script src="./js/register.js"></script>
</body>

</html>